<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="news">
        <h6 class="title">
            金评媒
        </h6>
        <ul>
            <li>
                <a href="#"><img src="img/狗头.jpg" alt="">
                <h6>这是新闻标题</h6></a>
                <p>这是新闻这是新闻这是新闻这是新闻这是新闻这是新闻这是新闻</p>
            </li>
            <li>
                <a href="#"><img src="img/狗头.jpg" alt="">
                <h6>这是新闻标题</h6></a>
                <p>这是新闻这是新闻这是新闻这是新闻这是新闻这是新闻这是新闻</p>
            </li>
        </ul>
    </div>

    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .news {
            width: 386px;
            height: 265px;
            border: 1px solid #333;
            margin: 20px auto;
            padding: 10px;

        }

        .news .title {
            color: #666;
            font-size: 18px;
        }

        .news ul {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
        }

        .news ul li {
            width: 190px;
            float: left;
            list-style: none;
            padding-right: 10px;
            box-sizing: border-box;
        }

        .news ul li:nth-child(2) {
            padding-right: 0px;
            padding-left: 10px;
        }

        .news ul li a  {
            color: #666;
            text-decoration: none;
        }

        .news ul li a:hover {
            color: #f69;
            text-decoration: underline;
        }

        .news ul li p {
            color: #666;
            font-size: 12px;
            line-height: 24px;
            margin-top: 12px;
        }

        .news ul img {
            /* text-align: center; */
            margin: 10px auto;
            width: 100px;
            height: 100px;
        }
    </style>
</body>